/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-12-14 15:58:56
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-01-02 15:31:26
 * @FilePath: \cxl-driving-training\src\apis\price\index.ts
 */
import axios from '../../axios/index'

export interface pricePageInterface {
    classType?: number
    current?: number
    size?: number
    disable?: number //0.可用；1.禁用
    vehicleType?: number //车辆类型（1.小车；2.摩托车; 3.无人机）
}
export const priceList = (params: pricePageInterface) => {
    return axios({
        method: 'get',
        url: '/api/mall/product/pageList',
        params
    })
}

export interface priceOperationInterface {
    activePrice?: string
    originalPrice?: string
    priceId?: string
    productId?: string
    type?: number //类型(1.C1;2.C2)
    businessId?: string
}
export const priceEdit = (data: priceOperationInterface[]) => {
    return axios({
        method: 'post',
        url: '/api/mall/productPrice/savePrice ',
        data
    })
}
